<div class="uploads view">
<h2><?php  echo __('Archivo'); ?></h2>
	<dl>
		<!--dt><?php echo __('Id'); ?></dt>
		<dd>
			<?php echo h($upload['Upload']['id']); ?>
			&nbsp;
		</dd-->
		<dt><?php echo __('Usuario'); ?></dt>
		<dd>
			<?php echo $this->Html->link($upload['User']['nombres'], array('controller' => 'users', 'action' => 'view', $upload['User']['id'])); ?>
			&nbsp;
		</dd>
		<!--dt><?php echo __('Filename'); ?></dt>
		<dd>
			<?php echo h($upload['Upload']['filename']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Filesize'); ?></dt>
		<dd>
			<?php echo h($upload['Upload']['filesize']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Filemime'); ?></dt>
		<dd>
			<?php echo h($upload['Upload']['filemime']); ?>
			&nbsp;
		</dd-->
		<dt><?php echo __('Fecha de subida'); ?></dt>
		<dd>
			<?php echo h($upload['Upload']['created']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Fecha de modificación'); ?></dt>
		<dd>
			<?php echo h($upload['Upload']['modified']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Descargar archivo'); ?></dt>
		<dd>
  			<?php echo $this->Html->link(__('Download', true), array('action' => 'download', $upload['Upload']['id'])); ?>
		</dd>
	</dl>
</div>
<!--div class="actions">
	<h3><?php echo __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Upload'), array('action' => 'edit', $upload['Upload']['id'])); ?> </li>
		<li><?php echo $this->Form->postLink(__('Delete Upload'), array('action' => 'delete', $upload['Upload']['id']), null, __('Are you sure you want to delete # %s?', $upload['Upload']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Uploads'), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Upload'), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Users'), array('controller' => 'users', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New User'), array('controller' => 'users', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php echo __('Related Users'); ?></h3>
	<?php if (!empty($upload['SharedUser'])): ?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Rut'); ?></th>
		<th><?php echo __('Username'); ?></th>
		<th><?php echo __('Password'); ?></th>
		<th><?php echo __('Nombres'); ?></th>
		<th><?php echo __('Apellido Paterno'); ?></th>
		<th><?php echo __('Apellido Materno'); ?></th>
		<th><?php echo __('Email'); ?></th>
		<th><?php echo __('Phone'); ?></th>
		<th><?php echo __('Cel Phone'); ?></th>
		<th><?php echo __('Role Id'); ?></th>
		<th><?php echo __('Institution Id'); ?></th>
		<th><?php echo __('Name'); ?></th>
		<th><?php echo __('User Group Id'); ?></th>
		<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($upload['SharedUser'] as $sharedUser): ?>
		<tr>
			<td><?php echo $sharedUser['id']; ?></td>
			<td><?php echo $sharedUser['rut']; ?></td>
			<td><?php echo $sharedUser['username']; ?></td>
			<td><?php echo $sharedUser['password']; ?></td>
			<td><?php echo $sharedUser['nombres']; ?></td>
			<td><?php echo $sharedUser['apellido_paterno']; ?></td>
			<td><?php echo $sharedUser['apellido_materno']; ?></td>
			<td><?php echo $sharedUser['email']; ?></td>
			<td><?php echo $sharedUser['phone']; ?></td>
			<td><?php echo $sharedUser['cel_phone']; ?></td>
			<td><?php echo $sharedUser['role_id']; ?></td>
			<td><?php echo $sharedUser['institution_id']; ?></td>
			<td><?php echo $sharedUser['name']; ?></td>
			<td><?php echo $sharedUser['user_group_id']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'users', 'action' => 'view', $sharedUser['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'users', 'action' => 'edit', $sharedUser['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'users', 'action' => 'delete', $sharedUser['id']), null, __('Are you sure you want to delete # %s?', $sharedUser['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Shared User'), array('controller' => 'users', 'action' => 'add')); ?> </li>
		</ul>
	</div>
</div-->
